package com.medata.service;

import com.medata.dataObject.Fj;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/6/28 0028 10:11
 * @description：
 */

public interface FjService {
    List<Fj> findByEducationOrComputerOrEmployOrFxyOrProfession(
            Integer num1,Integer num2,Integer num3,Integer num4,Integer num5);

    void saveOrUpdate(Fj fj);

    Integer unfullCount(Integer num1,Integer num2,Integer num3,Integer num4,Integer num5);

    Page<Fj> getByEducation(Integer number, Pageable pageable);
    Page<Fj> getByEmploy(Integer number, Pageable pageable);
    Page<Fj> getByFxy(Integer number, Pageable pageable);
    Page<Fj> getByComputer(Integer number, Pageable pageable);
    Page<Fj> getByProfession(Integer number, Pageable pageable);

    int countByEducation(Integer number);
    int countByEmploy(Integer number);
    int countByFxy(Integer number);
    int countByComputer(Integer number);
    int countByProfession(Integer number);

    Fj getByDocid(Integer docid);

    void deleteByTitle(String title);
}


